{% extends "SLBackBundle::layout.html.twig" %}

	{% block title %}{{ parent() }} - Projet Administration - Ajout : {% endblock %}
	
	{% block body %}
		<div class="form">
			<form name="myform" action="{{ path('sl_back_addprojet') }}" method="post" {{ form_enctype(form) }}>
				{{ form_errors(form) }}
			
				<div class="page-form">
					<div>
						{{ form_label(form.name, "Nom du projet") }}
						{{ form_widget(form.name) }}
					</div>
					<div>
						{{ form_label(form.date, "Date") }}
						{{ form_widget(form.date) }}
					</div>
					<div>
						{{ form_label(form.lieu, "Lieu") }}
						{{ form_widget(form.lieu) }}
					</div>
					<div>
						{{ form_label(form.description, "Description") }}
						{{ form_widget(form.description) }}
					</div>
					<div>
						{{ form_label(form.prix, "Prix") }}
						{{ form_widget(form.prix) }}
					</div>
					{#<div>
						{{ form_label(form.ligne, "Ligne") }}
						{{ form_widget(form.ligne) }}
					</div>
					<div>
						{{ form_label(form.position, "Position") }}
						{{ form_widget(form.position) }}
					</div>#}
				</div>
									Modifier les images du projet :
				{% for image in form.images %}
				<div class="block-form">
					<div>
						{{ form_label(image.isThumbnail, "Image principale") }}
						{{ form_widget(image.isThumbnail) }}
					</div>
					<div name="block-image">
						{{ form_label(image.url, "Url de l'image") }}
						{{ form_widget(image.url) }} <br />
						{{ form_label(image.alt, "Text alternatif") }}
						{{ form_widget(image.alt) }}
					</div>
				</div>
				{% endfor %}
				{{ form_rest(form) }}
				<input type="submit" />
			</form>
		</div>
	{% endblock %}